<?php

/**
 * INI parser create array data from ini config structure
 *
 * @package    Osiris
 * @subpackage Libraries
 * @version    SVN: $Id$
 */
class ConfigReader extends INITag
{
	/**
	 * Parse INI file
	 *
	 * @access public
	 * @param  string  $filename File to process
	 * @throws ConfigNotFoundException When filename is not set
	 * @return void
	 */
	public function __construct($filename)
	{
		if (!file_exists($filename)) {
			throw new ConfigNotFoundException($filename);
		}

		parent::__construct(parse_ini_file($filename, true));
	}
}

?>
